<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk">

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="./wave_css/itsc_wave.css" rel="stylesheet" type="text/css" />
        <title>Facelets Template</title>
    </head>

    <body>
        <div class="NHB" style="margin-top: 39px">
            <ui:insert name="left">
               <h:panelGrid columns="1" styleClass="tree_border" cellpadding="0" cellspacing="0">
                    <h:panelGrid styleClass="search_title" columns="1" cellpadding="0"
                                     cellspacing="2">
                        <h:outputLabel value="#{msg.tree_title_itsc}"  style="opacity: 0.65; padding-left: 4px; vertical-align: middle"/>
                    </h:panelGrid>
                    <h:form>
                        <t:tree2 id="clientTree" value="#{userLoginBean.treeModel}" var="node" varNodeToggler="t" clientSideToggle="false" showRootNode="true"
                                 >
                            <f:facet name="parent">
                                <h:panelGroup>
                                    <t:graphicImage value="/images/folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
                                    <t:graphicImage value="/images/folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
                                    <h:outputText value="#{node.description}" styleClass="nodeFolder" style="vertical-align:top"/>
                                </h:panelGroup>
                            </f:facet>
                            <f:facet name="foo-folder">
                                <h:panelGroup>
                                    <t:graphicImage value="/images/folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
                                    <t:graphicImage value="/images/folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
                                    <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
                                    <h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}"/>
                                </h:panelGroup>
                            </f:facet>
                            <f:facet name="bar-folder">
                                <h:panelGroup>
                                    <t:graphicImage value="/images/folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
                                    <t:graphicImage value="/images/folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
                                    <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
                                    <h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}"/>
                                </h:panelGroup>
                            </f:facet>
                            <f:facet name="child">
                                <h:panelGroup>
                                    <h:commandLink immediate="true" styleClass="#{t.nodeSelected ? 'documentSelected':'document'}" action="#{node.navigation}" actionListener="#{t.setNodeSelected}">
                                        <t:graphicImage value="/images/star.png" border="0"/>
                                        <h:outputText value="#{node.description}" style="vertical-align:top"/>
                                    </h:commandLink>
                                </h:panelGroup>
                            </f:facet>
                        </t:tree2>
                    </h:form>
                </h:panelGrid>
            </ui:insert>
        </div>
    </body>

</html>
